package lwf.web.struts.action.worksheet;

import java.util.List;
import java.util.Map;

import net.lwf.hibernate.entity.lookup.Lookup;
import net.lwf.hibernate.entity.worksheet.WorkSheetInfo;
import net.lwf.hibernate.entity.worksheet.WsType;

import org.apache.struts.action.ActionForm;

public class WsInfoActionForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	
	private Map<String, Map<WsType, List<WorkSheetInfo>>> wsdata;
	private Map<String, Map<WsType, List<WorkSheetInfo>>> alluniquewsdata;
	
	private List<WorkSheetInfo> uniquedata;
	private Map<WsType, List<WorkSheetInfo>> alldatasheetsPerType;
	private int availableWorkSheetCount = 0;
	private int totalGradeWorksheetCount = 0;
	
	private String selectedGrade;
	private List<Lookup> grades;
	private String selectedSubject;
	private List<Lookup> subjects;
	

	public Map<String, Map<WsType, List<WorkSheetInfo>>> getWsdata() {
		return wsdata;
	}

	public Map<String, Map<WsType, List<WorkSheetInfo>>> getAlluniquewsdata() {
		return alluniquewsdata;
	}

	public void setAlluniquewsdata(Map<String, Map<WsType, List<WorkSheetInfo>>> alluniquewsdata) {
		this.alluniquewsdata = alluniquewsdata;
	}

	public void setWsdata(Map<String, Map<WsType, List<WorkSheetInfo>>> wsdata) {
		this.wsdata = wsdata;
	}

	public List<WorkSheetInfo> getUniquedata() {
		return uniquedata;
	}

	public void setUniquedata(List<WorkSheetInfo> uniquedata) {
		this.uniquedata = uniquedata;
	}

	public Map<WsType, List<WorkSheetInfo>> getAlldatasheetsPerType() {
		return alldatasheetsPerType;
	}

	public void setAlldatasheetsPerType(
			Map<WsType, List<WorkSheetInfo>> alldatasheetsPerType) {
		this.alldatasheetsPerType = alldatasheetsPerType;
	}

	public int getAvailableWorkSheetCount() {
		return availableWorkSheetCount;
	}

	public void setAvailableWorkSheetCount(int availableWorkSheetCount) {
		this.availableWorkSheetCount = availableWorkSheetCount;
	}

	public int getTotalGradeWorksheetCount() {
		return totalGradeWorksheetCount;
	}

	public void setTotalGradeWorksheetCount(int totalGradeWorksheetCount) {
		this.totalGradeWorksheetCount = totalGradeWorksheetCount;
	}

	public String getSelectedGrade() {
		if(selectedGrade == null) {
			selectedGrade = "-1";
		}
		return selectedGrade;
	}

	public void setSelectedGrade(String selectedGrade) {
		this.selectedGrade = selectedGrade;
	}

	public String getSelectedSubject() {
		return selectedSubject;
	}

	public void setSelectedSubject(String selectedSubject) {
		this.selectedSubject = selectedSubject;
	}

	public List<Lookup> getGrades() {
		return grades;
	}

	public void setGrades(List<Lookup> grades) {
		this.grades = grades;
	}

	public List<Lookup> getSubjects() {
		return subjects;
	}

	public void setSubjects(List<Lookup> subjects) {
		this.subjects = subjects;
	}

	
	


}
